import type { GridType } from '../types';

export const getGrids = (rows: number, cols: number) => {
  const grids: GridType[] = [];
  for (let row = 1; row < rows + 1; row++) {
    for (let col = 1; col < cols + 1; col++) {
      grids.push({ row: row, column: col });
    }
  }
  return grids;
}